Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Ask users to provide a new google oauth credential if current one is invalid #2326

Merged

Conversation

FrankApiyo
Copy link
Member

@FrankApiyo FrankApiyo commented Oct 17, 2022

Changes / Features implemented

  • Delete invalid google OAuth credential and ask users to re-create them

Steps taken to verify this change does what is intended

  • Added a test case

Side effects of implementing this change

  • N/A

Before submitting this PR for review, please make sure you have:

  • Included tests
  • Updated documentation

@FrankApiyo FrankApiyo changed the title [WIP]Ask users to provide a new google oauth credential if current one is invalid Ask users to provide a new google oauth credential if current one is invalid Oct 17, 2022
@FrankApiyo FrankApiyo force-pushed the delete-invalid-credentials-and-ask-for-reauthentication branch 2 times, most recently from 7a3103c to fb6f249 Compare October 17, 2022 12:20
@FrankApiyo FrankApiyo force-pushed the delete-invalid-credentials-and-ask-for-reauthentication branch from 54e84a9 to d24ee08 Compare October 17, 2022 14:37
DavisRayM
DavisRayM previously approved these changes Oct 18, 2022
Copy link
Contributor

@DavisRayM DavisRayM left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@KipSigei
Copy link
Contributor

KipSigei commented Oct 18, 2022

@FrankApiyo Could we add a test case for refreshing credentials and assert whether they are valid or not expired when the refresh is successful?

@FrankApiyo
Copy link
Member Author

FrankApiyo commented Oct 18, 2022

@FrankApiyo Could we add a test case for refreshing credentials and assert whether they are valid or not expired when the refresh is successful?

This would be a bit tricky because we would need to provide an example of a valid google credential that would have to be attached to a google account, introducing a potentially flaky test since it would have to make an API request to google. I also think such a test would be testing google OAuth API and not our code, don't you think so?

@FrankApiyo FrankApiyo force-pushed the delete-invalid-credentials-and-ask-for-reauthentication branch 2 times, most recently from 8469938 to d2c37d6 Compare October 19, 2022 14:55
KipSigei
KipSigei previously approved these changes Oct 21, 2022
@FrankApiyo FrankApiyo force-pushed the delete-invalid-credentials-and-ask-for-reauthentication branch from d2c37d6 to 9ee1ee9 Compare October 24, 2022 11:23
@FrankApiyo FrankApiyo merged commit fbcba73 into main Oct 24, 2022
@FrankApiyo FrankApiyo deleted the delete-invalid-credentials-and-ask-for-reauthentication branch October 24, 2022 11:57
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants